<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <title>{% block title %} pygame.org {% endblock %}</title>
  <link rel="shortcut icon" type="image/ico" href="{{ MEDIA_URL }}images/favicon.ico"/>
  <link rel="stylesheet" media="screen,projection" type="text/css"  href="{{ MEDIA_URL }}css/rst.css"/>
  {% for theme in themes %}
  <link rel="{% ifnotequal theme.0 cur_theme %}alternate {% endifnotequal %}stylesheet" media="screen,projection" type="text/css"  href="{{ MEDIA_URL }}css/{{ theme.0 }}.css" title="{{theme.1}}"/>  
  {% endfor %}
  <link rel="stylesheet" media="screen,projection" type="text/css"  href="{{ MEDIA_URL }}css/highlighting/{{ style }}.css"/>
  <link rel="stylesheet" media="print" type="text/css"  href="{{ MEDIA_URL }}css/print.css"/>  
  <script type="text/javascript" src="{{MEDIA_URL}}js/jquery.js"></script>
  <script type="text/javascript" src="{{MEDIA_URL}}js/utils.js"></script>
  {% block extrahead %}{% endblock %}
 <!-- add style, js, extrahead -->
 
 <!-- IE6 and 7 js fixes -->
  <!--[if lte IE 7]>
	<script src="{{ MEDIA_URL }}js/ie7/IE8.js" type="text/javascript"></script>
	<script src="{{ MEDIA_URL }}js/ie7/ie7-squish.js" type="text/javascript"></script>
  <![endif]-->
 </head>
 <body>
 
 <!-- bg layered effects -->
 <div class="bg_layer1">
 <!-- page -->
  <div id="page">

<!-- header/logo -->
   <div id="header">
     <a href="/"><img src="{{MEDIA_URL}}images/logo_new_sm-trans.png" id="logo" alt="{{site.name}} logo" /></a>
	<!-- user specific messages --> 
	 
    {# always send ul (even without messages) to insert messages with js #}
	<ul id="messages">
     {% if messages %}
		{% for message in messages %}
		<li>{{ message }}</li>
		{% endfor %}
     {% else %}
     <li></li>
     {% endif %}
	</ul>
	
   </div>

 
  <div id="menubar_wrapper">
  <!-- rounded corners and background for menu -->
  <div id="menubar_l"></div>
  <div id="menubar">
 <!-- menu -->
   <div id="menu">
	 <a href="/news/" class="{% active request '^/news/' %}">News</a>
     <!--a href="/about/" class="{% active request '^/about/' %}">About</a--> 
     <a href="/download/" class="{% active request '^/download/' %}">Download</a> 
     <a href="/projects/" class="{% active request '^/projects/' %}">Projects</a>
     <a href="/profiles/" class="{% active request '^/profiles/' %}">Users</a>
     <a href="/snippets/" class="{% active request '^/snippets/' %}">Snippets</a>
     <a href="/docs/" class="{% active request '^/docs/' %}">Docs</a> 
     <a href="/dev/" class="{% active request '^/dev/' %}" >Code</a>
     <a href="/more/" class="{% active request '^/more/' %}">More</a>
     {% if request.user.is_staff %}
         <a href="/admin/" >Admin</a>
     {% endif %}
   </div>
   <div id="userbox">      
     {% if user.is_anonymous %}
       <a href="/accounts/register/" class="{% active request '^/accounts/register/$' %}">register</a> | 
       <a href="/accounts/login/{% if not request.path|startswith:"/accounts/" %}?next={{request.path}}{% endif %}" id="loginlink" class="{% active request '^/accounts/login/$' %}">login</a>
     {% else %}
       <a href="{{user.get_profile.get_absolute_url}}" class="{% active request '#userprofile' %}">{{user.username}}</a>:
       <a href="/profiles/edit/" class="{% active request '^/profiles/edit/$' %}">edit your profile</a> |
       <a href="/accounts/logout/?next={{request.path}}" id="logoutlink">logout</a>
    {% endif %}
   </div>
  </div>   
  
  <div id="menubar_r"></div>
  </div>
  <!-- menubar_wrapper -->   
   
   <div id="content_wrapper">
   
  <!-- project of the (last) month and recent releases -->   
    <div id="recent-releases-list">
    <h4>Project{{last_potm_w|pluralize}} of the Month<br/><a href="{{last_potm.get_absolute_url}}">{{last_potm.get_date}}</a></h4>
      {% if last_potm %}
      <ul>
       {% for winner in last_potm_w %}
        <li>
		<table cellpadding="0" cellspacing="0" border="0">
		<tr><td><div class="thumb_shadow">
        <a href="{{winner.get_absolute_url}}">{{winner.get_screenshot.preview}}</a></div></td></tr></table>
        <a href="{{winner.get_absolute_url}}">{{winner}}</a></li>
       {% endfor %}
      </ul>
      {% else %}
      <em>not yet available</em>
      {% endif %}
    <h4>Recent Releases</h4>
      <ul id="recent-releases">
        {% for release in recent_releases %}
        <li>
        <table cellpadding="0" cellspacing="0" border="0">
		<tr><td><div class="thumb_shadow">
        <a href="{{release.get_absolute_url}}">{{release.project.get_screenshot.preview}}</a></div></td></tr></table>
        <a href="{{release.get_absolute_url}}">{{release}}</a>
        <br/>
        </li>
        {% endfor %}
      </ul>
    <span id="releases_feeds" class="feeds">
        syndicate: 
        <a class="feedlink" href="{% url rss_feeds "releases" %}">
            <img class="feedicon" src="{{MEDIA_URL}}images/rss_icon.png" alt="rss icon"/>
        </a>
        <a class="feedlink" href="{% url atom_feeds "releases" %}">
            <img class="feedicon" src="{{MEDIA_URL}}images/atom_icon.png" alt="atom icon"/>
        </a>
        {% subscription_link request "pr" %}
    </span>
    </div> 
	
 <!-- submenu -->
   <div id="submenu">
        {% ifnotequal request.path "/search/" %}
      <form id="search" action="/search/" method="get">
       <p>
         <input type="text" id="proj-search" name="q" size="18" value="" />
         <input type="submit" value="Search" class="button" />
       </p>
      </form>
     {% endifnotequal %}
     {% block submenu %}
     {% endblock %}


   </div>
   
 <!-- content -->
   <div id="content">
     {% block content %}
     {% endblock %}
   </div> 
   
    </div>    
  <!-- content_wrapper --> 
  
  <!-- footer -->
   <div id="footer">
     <p>
     {% if counted_users_online %}
     {{counted_users_online}} user{{counted_users_online|pluralize}} 
     <span title="ie. active within the last {{minutes_until_offline}} minute{{minutes_until_offline|pluralize}}">online</span>: 
     {{users_online|userlist}} {% if counted_ghosts %}({{counted_ghosts}} user{{counted_ghosts|pluralize}} hidden){% endif %}
     {% else %}
     No users online.
     {% endif %}
     <hr/>
       <a href="http://www.djangoproject.com/"><img src="http://media.djangoproject.com/img/badges/djangosite80x15.gif" border="0" alt="A Django site." title="A Django site." /></a> by Julian Habrock, design by Devon Scott-Tunkin. 2009 
     </p>
   </div>
    
  </div>
 <!-- page -->
 
 </div>
 <!-- bg layered effects -->
 
 </body>
</html> 
